package com.xuecheng.content.service;

import com.xuecheng.api.content.model.dto.TeachplanDTO;
import com.xuecheng.content.entity.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-11
 */
public interface TeachplanService extends IService<Teachplan> {


    /**
     *课程计划的查询
     * @param courseId   课程的id
     * @param companyId  用户机构id
     * @return  TeachplanDTO  返回的
     */
    TeachplanDTO queryTreeNodesByCourseId(Long courseId,long companyId);


    /**
     *
     * @param teachplanDTO  课程计划信息
     * @param companyId   机构的id
     * @return
     */
    TeachplanDTO createOrModifyTeachPlan(TeachplanDTO teachplanDTO, Long companyId);



    /**
     * 根据课程计划Id删除课程计划信息
     * @param teachPlanId  课程计划Id
     * @param companyId  公司Id
     */
    void removeTeachPlan(Long teachPlanId,Long companyId);

}
